<?php
	
	//set Facebook variables inside arrays
	$facebook_name_values = array(
		'url' => 'sh-fb-url',
		'url-enabled' => 'sh-fb-url-enabled',
		'description' => 'sh-fb-description',
		'widget-enabled' => 'sh-fb-widget-enabled',
		'widget-url' => 'sh-fb-widget-url',
		'widget-color' => 'sh-fb-widget-color',
		'widget-width' => 'sh-fb-widget-width',
		'widget-header' => 'sh-fb-widget-header',
		'widget-stream' => 'sh-fb-widget-stream',
		'widget-faces' => 'sh-fb-widget-faces'
	);
	
	$facebook_post_values = array(
		'url' => $_POST[$facebook_name_values['url']],
		'url-enabled' => $_POST[$facebook_name_values['url-enabled']],
		'description' => $_POST[$facebook_name_values['description']],
		'widget-enabled' => $_POST[$facebook_name_values['widget-enabled']],
		'widget-url' => $_POST[$facebook_name_values['widget-url']],
		'widget-color' => $_POST[$facebook_name_values['widget-color']],
		'widget-width' => str_replace('px', '', $_POST[$facebook_name_values['widget-width']]),
		'widget-header' => $_POST[$facebook_name_values['widget-header']],
		'widget-stream' => $_POST[$facebook_name_values['widget-stream']],
		'widget-faces' => $_POST[$facebook_name_values['widget-faces']]
	);
	
	$facebook_get_values = array(
		'url' => get_option($facebook_name_values['url']),
		'url-enabled' => get_option($facebook_name_values['url-enabled']),
		'description' => get_option($facebook_name_values['description']),
		'widget-enabled' => get_option($facebook_name_values['widget-enabled']),
		'widget-url' => get_option($facebook_name_values['widget-url']),
		'widget-color' => get_option($facebook_name_values['widget-color']),
		'widget-width' => get_option($facebook_name_values['widget-width']),
		'widget-header' => get_option($facebook_name_values['widget-header']),
		'widget-stream' => get_option($facebook_name_values['widget-stream']),
		'widget-faces' => get_option($facebook_name_values['widget-faces'])
	);
	
	
	//set Twitter variables and retrieve the data from the database
	$twitter_name_values = array(
		'url' => 'sh-twitter-url',
		'url-enabled' => 'sh-twitter-url-enabled',
		'description' => 'sh-twitter-description',
		'widget-enabled' => 'sh-twitter-widget-enabled',
		'widget-url' => 'sh-twitter-widget-url',
		'widget-width' => 'sh-twitter-widget-width',
		'widget-height' => 'sh-twitter-widget-height',
		'widget-shell-bg' => 'sh-twitter-widget-shell-bg',
		'widget-shell-txtcolor' => 'sh-twitter-widget-shell-txtcolor',
		'widget-tweet-bg' => 'sh-twitter-widget-tweet-bg',
		'widget-tweet-color' => 'sh-twitter-tweet-color',
		'widget-tweet-linkColor' => 'sh-twitter-tweet-linkColor'
	);
	
	$twitter_post_values = array(
		'url' => $_POST[$twitter_name_values['url']],
		'url-enabled' => $_POST[$twitter_name_values['url-enabled']],
		'description' => $_POST[$twitter_name_values['description']],
		'widget-enabled' => $_POST[$twitter_name_values['widget-enabled']],
		'widget-url' => $_POST[$twitter_name_values['widget-url']],
		'widget-width' => $_POST[$twitter_name_values['widget-width']],
		'widget-height' => $_POST[$twitter_name_values['widget-height']],
		'widget-shell-bg' => $_POST[$twitter_name_values['widget-shell-bg']],
		'widget-shell-txtcolor' => $_POST[$twitter_name_values['widget-shell-txtcolor']],
		'widget-tweet-bg' => $_POST[$twitter_name_values['widget-tweet-bg']],
		'widget-tweet-color' => $_POST[$twitter_name_values['widget-tweet-color']],
		'widget-tweet-linkColor' => $_POST[$twitter_name_values['widget-tweet-linkColor']]
	);
	
	$twitter_get_values = array(
		'url' => get_option($twitter_name_values['url']),
		'url-enabled' => get_option($twitter_name_values['url-enabled']),
		'description' => get_option($twitter_name_values['description']),
		'widget-enabled' => get_option($twitter_name_values['widget-enabled']),
		'widget-url' => get_option($twitter_name_values['widget-url']),
		'widget-width' => get_option($twitter_name_values['widget-width']),
		'widget-height' => get_option($twitter_name_values['widget-height']),
		'widget-shell-bg' => get_option($twitter_name_values['widget-shell-bg']),
		'widget-shell-txtcolor' => get_option($twitter_name_values['widget-shell-txtcolor']),
		'widget-tweet-bg' => get_option($twitter_name_values['widget-tweet-bg']),
		'widget-tweet-color' => get_option($twitter_name_values['widget-tweet-color']),
		'widget-tweet-linkColor' => get_option($twitter_name_values['widget-tweet-linkColor'])
	);
	
	
	//set LinkedIn variables and retrieve the data from the database
	$linkedin_name_values = array(
		'url' => 'sh-linkedin-url',
		'url-enabled' => 'sh-linkedin-url-enabled',
		'description' => 'sh-linkedin-description'
	);
	
	$linkedin_post_values = array(
		'url' => $_POST[$linkedin_name_values['url']],
		'url-enabled' => $_POST[$linkedin_name_values['url-enabled']],
		'description' => $_POST[$linkedin_name_values['description']]
	);
	
	$linkedin_get_values = array(
		'url' => get_option($linkedin_name_values['url']),
		'url-enabled' => get_option($linkedin_name_values['url-enabled']),
		'description' => get_option($linkedin_name_values['description'])
	);
	
	
	//set YouTube variables and retrieve the data from the database
	$youtube_name_values = array(
		'url' => 'sh-youtube-url',
		'url-enabled' => 'sh-youtube-url-enabled',
		'description' => 'sh-youtube-description'
	);
	
	$youtube_post_values = array(
		'url' => $_POST[$youtube_name_values['url']],
		'url-enabled' => $_POST[$youtube_name_values['url-enabled']],
		'description' => $_POST[$youtube_name_values['description']]
	);
	
	$youtube_get_values = array(
		'url' => get_option($youtube_name_values['url']),
		'url-enabled' => get_option($youtube_name_values['url-enabled']),
		'description' => get_option($youtube_name_values['description'])
	);
	
	
	//set Google variables and retrieve the data from the database
	$google_name_values = array(
		'url' => 'sh-google-url',
		'url-enabled' => 'sh-google-url-enabled',
		'description' => 'sh-google-description'
	);
	
	$google_post_values = array(
		'url' => $_POST[$google_name_values['url']],
		'url-enabled' => $_POST[$google_name_values['url-enabled']],
		'description' => $_POST[$google_name_values['description']]
	);
	
	$google_get_values = array(
		'url' => get_option($google_name_values['url']),
		'url-enabled' => get_option($google_name_values['url-enabled']),
		'description' => get_option($google_name_values['description'])
	);
	
	
	//set Yelp variables and retrieve the data from the database
	$yelp_name_values = array(
		'url' => 'sh-yelp-url',
		'url-enabled' => 'sh-yelp-url-enabled',
		'description' => 'sh-yelp-description'
	);
	
	$yelp_post_values = array(
		'url' => $_POST[$yelp_name_values['url']],
		'url-enabled' => $_POST[$yelp_name_values['url-enabled']],
		'description' => $_POST[$yelp_name_values['description']]
	);
	
	$yelp_get_values = array(
		'url' => get_option($yelp_name_values['url']),
		'url-enabled' => get_option($yelp_name_values['url-enabled']),
		'description' => get_option($yelp_name_values['description'])
	);
	
	
	
	
	
	
